package worldinruin.core.imp.buildings;

import worldinruin.core.IResourceBuilding;
import worldinruin.core.IResources;
import worldinruin.core.ITile;
import worldinruin.core.IType;
import worldinruin.core.imp.Resources;


public class Ironmine implements IResourceBuilding{
	
	
	private static final long serialVersionUID = 9200381475850338372L;
	private String name;
	private ITile tile;
	private IType buildingType;
	private IResources price;
	private IResources productionRate;
	private String buildingDescription;
	
	/**
	 * Creates an ironmine.
	 */
	public Ironmine() {
		 name = "Iron mine";
		 buildingType = BuildingTypes.IRONMINE;
		 price = new Resources(10, 50, 10, 10);
		 productionRate= new Resources(0, 50, 0, 0);
		 buildingDescription = "This building is a ironmine. Here you store iron.";
	}
	
	/**
	 * Creates an ironmine on a tile.
	 * @param tile Tile position.
	 */
	public Ironmine(ITile tile) {
		this();
		this.tile = tile;
	}

	@Override
	public String getName() {
		return name;
	}
	
	@Override
	public ITile getTile() {
		return tile;
	}
	
	@Override
	public IResources getPrice() {
		return price;
	}

	@Override
	public IResources getProductionRate() {
		return productionRate; 
	}
	@Override
	public IType getBuildingType() {
		return buildingType;
	}
	
	@Override
	public String getBuildingDescription(){
		return buildingDescription;
	}
}
